/**
 * @author lonun@gmail.com
 */

var _dataSource = {
	dev:{
		"host": "127.0.0.1",
		"database": "album",
		"username": "",
		"password": ""
	},
	test:{
		"host": "127.0.0.1",
		"database": "album",
		"username": "album",
		"password": "123456"
	},
	prd:{
		"host": "127.0.0.1",
		"database": "album",
		"username": "album",
		"password": "123456"
	}
};

exports.staticFileDir = 'static';
exports.defaultPort = 6060;
exports.templateSuffix = {"jade":".jade","ejs":"html"};
exports.templateType = "ejs";
exports.templatePath = "views";
exports.baseDir = process.cwd();
exports.basePath = '';
exports.uploadDir = __dirname+'/static/upload';
exports.sessionTimeout = 1200000;
exports.indexPage = '/index.html';
exports.err404Page = '404.html';
exports.err500Page = '500.html';
exports.env = 'dev';
exports.dbType = 'mongodb';
exports.dataSource = _dataSource[exports.env];
exports.webSocket = 'off';
exports.socketServices = [{event:'test', action:'socketTest/test'},{event:'sendMsg', action:'socketTest/msg'}];
